Part Number Hot Search : 
A3230 HBAS16 ICX098AL TIS93 SH62022 T0605SH FR152G 250BZX
Product Description
Full Text Search
 

To Download AN901 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  AN901/1100 1/14 AN901 application note emc guidelines for microcontroller-based applications by microcontroller division applications introduction electromagnetic compatibility (emc) must be taken into account at the very beginning of a project as the cost of correcting an emc problem encountered at the start of production can be far greater that the cost of a detailed emc study during the development phase of an applica- tion. the use of microcontroller-based systems is increasingly wide-spread, especially in such areas as consumer, industrial and automotive applications, where the drive for cost reduction is the common trend. this emphasis on cost reduction and the increasing complexity of such systems requires the manufacturers of semiconductor components to develop highly inte- grated, single chip, high operating frequency microcontrollers using the highest density tech- nology possible. unfortunately, for semiconductor structures, the higher the density and the faster the operation, intrinsically the higher the level of electrical noise generated, and the in- creased sensitivity to spikes induced from external noise. therefore, the pcb layout, the soft- ware and the system must now apply emc hardening techniques in their design. this note aims to provide guidelines for designers of microcontroller-based applications so that the optimum level of emc performances can be achieved. for general information about emc performances, please refer to application note an898. 1
2/14 emc guidelines for microcontroller-based applications 1 definition of terms electromagnetic compatibility (emc) is the capacity of a piece of equipment to work properly in its normal environment, and not create electrical disturbances that would interfere with other equipment. electromagnetic susceptibility (ems) is the level of resistance to electrical disturbances such as electromagnetic fields and conducted electrical noise. electromagnetic interference (emi) is the level of conducted/radiated electrical noise created by the equipment. there exists several standards addressing ems or emi issues, and for every type of applica- tion area. these standards apply to finished equipment. up to now, there is no official standard applicable to sub-systems or electronic components. nevertheless, emc tests must be performed on the sub-systems in order to evaluate and optimize applications for emc per- formances. 1.1 emc standards table 1. electromagnetic emissions table 2. electromagnetic susceptibility standard equivalent international standard description en50081-1 generic emissions standards - residential en50081-2 generic emissions standards - industrial en55011 cispr 11 for industrial, scientific and medical equipment en55013 cispr 13 for broadcast receivers en 55014 cispr 14 for household appliances/tools en 55022 cispr 22 for data processing equipment sae 1752/3 american measurements procedure for susceptibility standard equivalent international standard description en50082-1 generic immunity standards - residential en50082-2 generic immunity standards - industrial en50140 iec 1000-4-3 (old nb: iec 801-3) rfi (radiated test) (80 mhz - 1 ghz at 1 to 10 v/m) en50141 iec 1000-4-6 (old nb: iec 801-6) induced rf fields (conducted test) (150 khz - 80 mhz at 1 to 10v (80% am, 1 khz)) en50142 iec 1000-4-5 (old nb: iec 801-5) surge en???? (tbd) iec 1000-4-4 (old nb: iec 801-4) eft / burst (250v - 2kv i/o lines; 0.5 - 4kv ac/dc mains) 2
3/14 emc guidelines for microcontroller-based applications 2 scope specific emc requirements apply to each part of a microcontroller-based application ac- cording to emi references. 2.1 noise sources electrostatic discharges, mains, switching of high currents and voltages or radio frequency (rf) generators are just some of the causes of electromagnetic interference, or noise, in mi- crocontroller environments. within the microcontroller itself, the main contributors to noise are: C oscillator: continuous rf source, C system clock circuits: rf divider followed by large amplifiers which drive long lines inside the component, C output transitions: the relative weight depends on the frequency of the transitions and their duration; i.e. the shorter the transitions, the richer the frequency spectrum, C data/address buses: for some microcontrollers, a part of the memory space is external, which implies continuous transitions on several lines. 2.2 noise carriers emi can be transferred by electromagnetic waves, conduction, and inductive/capacitive cou- pling. obviously, emi must reach the conductors in order to disturb the components. this means that the loops, long length and large surface of the conductors are vulnerable to emi, making the pcb the principal subject of emc improvements. 2.3 affected areas in a microcontroller-based system, the core process is intrinsically sequential and must rely on valid data. once a non-emc-protected program is disturbed, it cannot resume normal opera- tion. from the electrical point of view, the following areas are vulnerable: C system-clock integrity C memory cells: memory blocks, in addition to registers and memory cells supporting the state machine of the processor, C important signals, i.e. reset, interrupt, handshaking strobe.
4/14 emc guidelines for microcontroller-based applications 3 emc compliance once the areas involved are identified, emc performances are improved by decreasing noise source emissions, increasing emi immunity in susceptible areas and weakening the capacity of noise carriers. 3.1 printed circuit board for technical reasons, it is best to use a multi-layer printed circuit board (pcb) with a separate layer dedicated to the ground and another one to the v dd supply, which results in a good de- coupling, as well as a good shielding effect. for many applications, economical requirements prohibit the use of this type of board. in this case, the most important feature is to ensure a good structure for the ground and power supply. 3.1.1 component position a preliminary layout of the pcb must separate the different circuits according to their emi con- tribution in order to reduce cross-coupling on the pcb, i.e. noisy, high-current circuits, low- voltage circuits, and digital components. 3.1.2 ground and power supply (v ss , v dd ) the ground should be distributed individually to every block (noisy, low level sensitive, dig- ital,...) with a single point for gathering all ground returns. loops must be avoided or have a minimum surface. the power supply should be implemented close to the ground line to mini- mize the surface of the supply loop. this is due to the fact that the supply loop acts as an an- tenna, and is therefore the main emitter and receiver of emi. all component-free surfaces of the pcb must be filled with additional grounding to create a kind of shielding (especially when using single-layer pcbs). 3.1.3 decoupling the standard decoupler for microcontrollers is a 100-f pool capacitor, and in parallel, a 0.1-f high frequency capacitor (typical values). aluminium electrolytic capacitors should be avoided due to their poor performance at high frequencies. these capacitors must physically be as close as possible to the v ss /v dd pins of the component in order to reduce the surface of the actual loop. as a general rule, decoupling all sensitive or noisy signals improves emc performances. there are 2 types of decouplers: C capacitors close to components. inductive characteristics, which apply to all capacitors be- yond a certain frequency, must be taken into account. if possible, parallel capacitors with de- creasing values (0.1, 0.01,... f) should be used. C inductors. although often ignored, ferrite beads, for example, are excellent inductors due to their good dissipation of emi energy and there is no loss of dc voltage (which not the case when simple resistors are used).
5/14 emc guidelines for microcontroller-based applications 3.1.4 oscillator almost all microcontrollers have an oscillator coupled to an external crystal or ceramic reso- nator. on the pcb, the copper traces to pins extal/xtal/v ss (for external capacitors) must be kept as short as possible. these capacitors are included in certain resonators which further shorten traces. since the rc option is potentially sensitive to spikes which can shorten clock periods, the res- onator option is preferable. 3.1.5 other signals when designing an application, the following areas should be closely studied to improve emc performances: C noisy signals (clock...), C sensitive signals (high impedance...). in addition to: C signals for which a temporary disturbance affects the running process permanently (the case of interrupts and handshaking strobe signals, and not the case for led commands). a surrounding ground trace for these signal increases emc performances, as well as a shorter length and the absence nearby of noisy and sensitive traces (crosstalk effect). for digital signals, the best possible electrical margin must be reached for the 2 logical states and slow schmitt triggers are recommended for eliminating parasitic states. 3.2 programming emc-hardened software 3.2.1 parallel processes with a programmable system, an obvious possible ems weakness arises from an unique process that relies on valid memorized data. at first, the unique process must be split into as many parallel and independent processes as possible. this is particularly important for secu- rity functions such as the watchdog, refresh routine and the initialization routine. additionally, such a split is useful for locating weaknesses during emc debugging. 3.2.2 watchdog the watchdog is a circuit which must be updated within a maximum time slot. the best sys- tems maintain the watchdog independent of the cpu (not built with a soft routine). for ex- ample, stmicroelectronics st62 microcontrollers have a watchdog integrated in the compo- nent, and is able to run independently of the cpu. the watchdog update routine must be treated as a critical process to reduce chances that the watchdog is updated when the process is no longer in normal operation.
6/14 emc guidelines for microcontroller-based applications 3.2.3 free memory in many cases, the internal program space is not used 100%. this creates a free memory area where normally, the application program must never take instructions. this area must be used as a trap which leads to a reset routine. this is done by filling this area with no-operation in- structions (nops) followed by a jump to reset routine command. 3.2.4 software hardening there are several other methods for improving emc performances: C periodic self-checks of data integrity (checksum...), C when critical tasks are executed, verify data redundancy and check for runaway condi- tions, C create a kind of milestone (i.e. trace point) throughout the program that is verified using a status register that makes sure that step n follows step n-1, C periodic updating of the control/data registers, which is particularly useful for the i/o reg- isters which are in the first in line to face emi. each time a runaway condition is detected, the initialization routine must be performed. 3.3 system architecture at the very beginning of a project, certain preliminary decisions must be made to meet emc optimization requirements. 3.3.1 pcb location the pcb must be kept as far away as possible from the mains supply wiring as well as extra- high voltage lines or very high current lines. also, they should not be repeatedly switched on/ off. in certain cases, natural shielding may exist in the application. in this case, it should be used wisely. 3.3.2 component mounting surface-mounted components (smcs) have a higher density than standard through-hole mounted components, and therefore require shorter traces on the pcb. for microcontrollers, smc packages such as small outline (so) and quad flat (qfp) packages reduce the length of signal lines and require a smaller power supply loop.
7/14 emc guidelines for microcontroller-based applications 3.3.3 choice of microcontroller the use of a microcontroller with a high clock rate may cause dangerous emi levels. this fea- ture should not be used unless it is specifically needed for real-time application requirements. if a high system-clock frequency is requested, certain microcontrollers (such as the stmicro- electronics st9 family) use an internal pll to build a system clock frequency higher than the oscillator frequency with an external resonator (emi reduction). a hardware watchdog must implemented in the microcontroller in order to meet emc requirements. certain component suppliers, such as stmicroelectronics, have taken emc requirements into account when designing their products. it is best to use components designed with specific emc technical characteristics, rather than those with unknown emc performance levels. 3.3.4 unused features all microcontrollers are designed for a variety of applications and often a particular application does not use 100% of the mcu resources. to increase emc performances, unused clocks or counters, as well as i/os, should not be left free, e.g. i/os should be set to 0 or 1 and unused functions should be frozen or disabled.
8/14 emc guidelines for microcontroller-based applications 3.4 measuring emc performances emc performances are measured according to two different aspects: C electromagnetic emissions (eme), C electromagnetic susceptibility (ems). the two aspects differ according to the method of measurement, the problems identified and their solutions. if an mcu application passes a susceptibility test, it does not mean that it will pass emissions tests, regardless of the types of test performed. therefore, both ems and eme testing must be carried out. stmicroelectronics has designed specific emc testing for its microcontroller components. a short description of the approach developed by st, which can also be applied to microcon- troller applications, is given below: stmicroelectronics emc testing the method is derived from iec (standards) and vde/sae specifications. first, an emc test board that reproduces the typical environment of the microcontroller in an application is designed for each microcontroller. then, to ensure reproducible tests, the pin loading is standardized according to sae 1751 specifications. table 3. emc testing 3.4.1 emissions tests there are two types of eme tests; conducted and radiated. conducted eme tests are more re- producible because they do not overly depend on the pcb. 3.4.1.1 radiated eme tests to isolate the components emc behaviour, the board is designed according to sae 1752 specifications. the board is placed on a metallic box in order to mask all other components. performances are measured in a faraday cage with the electromagnetic radiator placed at a distance of 3 meters. the results are measured using a spectrum analyser. power digital typically 100 f electrolytic typically 100 f ceramic input gnd or 10-k w pull-up resistor if no gnd output 50 pf to gnd ei-directional configure as output 50 pf to gnd
9/14 emc guidelines for microcontroller-based applications 3.4.1.2 conducted eme tests the noise radiated by the microcontroller is caused by the supply current and the output signal. so, the most significant conducted emission measurements consists of analysing these signals with a spectrum analyser. two probes are used to extract the signal and to adapt the impedance to the spectrum ana- lyser input. figure 1. ground current probe the 1-ohm resistor is inserted into the main gnd wire, i.e. between the power supply, decou- pling capacitor and pin load on one side and the ic gnd and oscillator load on the other. figure 2. output signal probe a good correlation can be found between radiated eme and ground current measurements. the 1-ohm probe has very good high frequency (hf) characteristics up to 1 ghz. due to low signal levels, an amplifier is used. output pin probe the hf resistance of wires on application boards is typically in the range of 100-300 ohms. therefore, the mcu can be seen as a noise generator connected to a 150-ohm antenna system. these definitions are taken from standard iec 1000-4-6. to convert the 150-ohm board load to 50 ohms, a voltage divider is used. v ss 1 w 49 w coax cable (= 50 w) to spectrum analyser 100 m f oscin oscout 1 w v dd v ss
10/14 emc guidelines for microcontroller-based applications figure 3. voltage divider diagram 3.4.2 eme immunity tests there are an infinite number of disturbances, but the principal types can be classified ac- cording to their spectrum. figure 4. disturbance spectrum diagram the discontinuity of the power supply is irrelevant since electrical energy is not stored in mcus. the surge test does not affect the microcontroller as long as the supply voltage remains cor- rect since the rise time is much greater when compared to the clock period. stmicroelectronics focuses it efforts on esds and fast transients. 3.4.2.1 electrostatic discharges electrostatic discharge (esd) tests, in compliance with standard iec 1000-4-2, are very im- portant to ensure that the application is not disturbed by the high amount of static voltage pro- duced by the human body. there are two types of tests; air-discharge tests that use a spherical tip and contact discharge tests that use a conical tip. for contact discharge tests, the tips are placed on the pins and the esd voltage is in the 0-8 kv range. ~ 50 w 120 w 47 nf 2 noise sources 51 voltage divider spectrum analyser mcu schema rise time energy - esd - fast transient - radio frequency - surge - discontinuity of the power supply 1 ns 5 ns 1.2 s in ms 30-1000 mhz
11/14 emc guidelines for microcontroller-based applications for air-discharge tests, the product is placed on a ground plane separated with 10 cm of insu- lation. discharges are made on the ground plane. a statistical method gives more reproducible results. 3.4.2.2 fast transients this test consists of coupling these disturbances to the power supply or to the i/o of the mcu. fast transients are generated by switches or relays. fast transients are described in standard iec.1000-4-4. figure 5. disturbance diagram the spike frequency is 5 khz. the generator produces bursts of spikes that last 15 ms every 300 ms. the fast transients are coupled to the device under test (dut) with capacitors c c . an attenu- ator must be used because the burst generators are too powerful to be directly applied to the components. figure 6. coupling network the fast transients are coupled to the i/o with a small capacitor. 0.1 0.5 0.9 50ns 5ns 300 ns 3 100 ns c c c c to power supply decoupling network power supply network to the dut m m m m
12/14 emc guidelines for microcontroller-based applications test description the test is performed in compliance with standard iec 1000-4-4. measurements are performed on a ground plane. the generator is connected to ground plane by a short wire. the ht wire is 10 cm from the ground plane. the dut is on the insulator 10 cm from the ground plane. the first method consists of increasing the generator voltage until the mcu fails. if this method demonstrates reproducibility problems (the voltage is lower than when the spike occurs), a statistical method must be used. 3.4.2.3 radio frequency interference the radio frequency is a sine wave modulated with a 1-khz signal. the frequency range is be- tween 150-khz and 1-ghz. in general, radio frequency interference (rfi) results from electro- magnetic radiation. both radiated and conducted eme tests (described in sae and vde spec- ifications, respectively) are used by stmicroelectronics. the first gives a global description of the mcu whereas the second gives a description of each pin. the radiated eme tests are performed in a screened room. the dut is completely isolated by using special board according to standard sae 1752. the test is performed in compliance with standard iec 1000-4-3. the conducted eme test uses a coupling network similar to the one used for fast transients. for each frequency, the voltage is increased until the mcu fails in order to characterize the voltage/frequency interval of safe operation. 3.4.3 interpretation of results the purpose of the described emc measurements is to guide the application engineer during emc debugging phases and for the pre-qualification emc test. since these measurements are not certified tests, which are the responsibility of specialized laboratories, there is no ab- solute acceptance levels (which depend on the area of application). this process is designed to detect eme peaks and sensitive frequencies that exceed accepted levels and in fixing these defects.
13/14 emc guidelines for microcontroller-based applications 4 conclusion the purpose of this application note is to convince designers of microcontroller applications to take emc performances into consideration at the very beginning of the project. most of the emc improvements presented in this document are already known, but they must be applied. there is no single action to meet emc performance requirements, as each tech- nique yields a small improvement. only a comprehensive application of the techniques men- tioned can lead to optimum emc performances. stmicroelectronics, which has acquired ex- tensive emc expertise for their microcontrollers, makes their expertise available to their cus- tomers.
14/14 emc guidelines for microcontroller-based applications the present note which is for guidance only aims at providing customers with information regarding their products in order for them to save time. as a result, stmicroelectronics shall not be held liable for any direct, indirect or consequential damages with respect to any claims arising from the content of such a note and/or the use made by customers of the information contained herein in connexion with their products. information furnished is believed to be accurate and reliable. however, stmicroelectronics assumes no responsibility for the co nsequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. no license is granted by implication or otherwise under any patent or patent rights of stmicroelectronics. specifications mentioned in this publicati on are subject to change without notice. this publication supersedes and replaces all information previously supplied. stmicroelectronics prod ucts are not authorized for use as critical components in life support devices or systems without the express written approval of stmicroele ctronics. the st logo is a registered trademark of stmicroelectronics ? 2000 stmicroelectronics - all rights reserved. purchase of i 2 c components by stmicroelectronics conveys a license under the philips i 2 c patent. rights to use these components in an i 2 c system is granted provided that the system conforms to the i 2 c standard specification as defined by philips. stmicroelectronics group of companies australia - brazil - china - finland - france - germany - hong kong - india - italy - japan - malaysia - malta - morocco - sin gapore - spain sweden - switzerland - united kingdom - u.s.a. http://www.st.com


▲Up To Search▲   

 
Price & Availability of AN901

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X